<script lang="ts" setup>
import { onMounted, ref } from 'vue'
const num = ref(0)
onMounted(() => {
  num.value = num.value + 1
})
</script>

<template>
  <slot></slot>
  <button @click="num++">click num</button>
  <div>num:{{ num }}</div>
</template>

<style scoped>
.greet {
  color: green;
}
</style>
